home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 November / Chip Kasım 2001.iso / prog / amapi3d / data1.cab / Common / MACROS / NEWSHADERS.TCL < prev    next >
Encoding:
Text File  |  2000-08-11  |  22.5 KB  |  768 lines

  1. #setuprender -verbose         1
  2. setuprender -shadows         1
  3. setuprender -raytrace         1
  4. setuprender -fast         0
  5. setuprender -remove_back    0
  6. #setuprender -savetga "D:\\images\\transp.TGA"
  7.  
  8. ###########################################
  9. newshader mirror_shader "mirror"
  10.  
  11. mirror_shader -ambiant { .5 .5 .5 }
  12. mirror_shader -couleur { 1 1 1 }
  13. mirror_shader -diffus 0.9
  14. mirror_shader -spec_coef .8
  15. mirror_shader -spec_couleur     { 1 1 1 }
  16. mirror_shader -reflection    { .9 .9 .9 }
  17. mirror_shader -spec_etal 200
  18.  
  19.  
  20. ###########################################
  21. newshader refract_shader "refract"
  22.  
  23. refract_shader -ambiant { .3 .3 .3 }
  24. refract_shader -couleur { .5 .8 1 }
  25. refract_shader -diffus 0.9
  26. refract_shader -spec_coef .8
  27. #refract_shader -spec_couleur     { 1 1 1 }
  28. refract_shader -opacity        { .1 .1 .1 }
  29. refract_shader -refraction    1.01
  30. refract_shader -spec_etal 200
  31.  
  32. ###########################################
  33. newshader glass_shader "glass transp"
  34.  
  35. glass_shader -ambiant { .05 .05 .05 }
  36. glass_shader -couleur { 1 1 1 }
  37. glass_shader -diffus 0.9
  38. glass_shader -spec_coef .8
  39. glass_shader -spec_couleur     { 1 1 1 }
  40. glass_shader -opacity        { .1 .1 .1 }
  41. glass_shader -refraction    1.01
  42. glass_shader -spec_etal 200
  43.  
  44. ###########################################
  45. newshader lens_shader "lens transp"
  46.  
  47. lens_shader -ambiant { .05 .05 .05 }
  48. lens_shader -couleur { 1 1 1 }
  49. lens_shader -diffus 0.9
  50. lens_shader -spec_coef .8
  51. lens_shader -spec_couleur     { 1 1 1 }
  52. lens_shader -opacity        { .1 .1 .1 }
  53. lens_shader -refraction    0.97 
  54. lens_shader -spec_etal 200
  55.  
  56. ###########################################
  57. newshader marble_shader "Marble"
  58.  
  59. marble_shader -diffus 0.9
  60. marble_shader -spec_coef .8
  61. marble_shader -spec_couleur { 1 1 1 }
  62. marble_shader -spec_etal 200
  63. marble_shader -texture marble_text
  64.  
  65. marble_text -texture3d         marble_t3d
  66. marble_text -destination     color
  67. marble_text -algo_applic    mix
  68. marble_text -param_applic    0.5
  69.  
  70. marble_t3d -type         marble
  71. marble_t3d -perturbation     0.3
  72. marble_t3d -scale     { 3 3 3 }
  73. marble_t3d -trans     { 0.0 0.0 0.0 }
  74. marble_t3d -rotat     { 0.0 0.0 0.0 }
  75. marble_t3d -taille        10
  76. marble_t3d -couleur1         { .1 .3 .5 }
  77. marble_t3d -couleur2        { 0 1 1 }
  78. marble_t3d -colmap { 0.10 0.0 0.9 0.1 1.0 }
  79. marble_t3d -colmap { 0.40 0.2 0.6 0.4 1.0 }
  80. marble_t3d -colmap { 0.60 0.4 0.9 0.1 1.0 }
  81. marble_t3d -colmap { 0.80 0.7 1.0 0.7 1.0 }
  82.  
  83.  
  84. ###########################################
  85. newshader wood_shader "Wood"
  86. wood_shader -diffus 0.9
  87. wood_shader -spec_coef 0
  88. wood_shader -spec_couleur { 1 1 1 }
  89. wood_shader -spec_etal 200
  90. wood_shader -ambiant { 0.4 0.4 0.4 }
  91. wood_shader -texture wood_text
  92.  
  93. wood_text -texture3d         wood_t3d
  94. wood_text -destination     color
  95. wood_text -algo_applic    replace
  96. wood_text -param_applic    0.5
  97.  
  98. wood_t3d -type         wood
  99. wood_t3d -scale     { 10 10 1 }
  100. wood_t3d -taille    10
  101. wood_t3d -trans     { 0.0 0.0 0.0 }
  102. wood_t3d -rotat     { 0.0 0.0 0.0 }
  103. wood_t3d -perturbation 0.2
  104. wood_t3d -octaves    1
  105. wood_t3d -couleur1    { .6 .3 0 }
  106. wood_t3d -couleur2    { .9 .5 0 }
  107.  
  108. ###########################################
  109. newshader cwood_shader "Cartoon water"
  110. cwood_shader -diffus 0.9
  111. cwood_shader -spec_coef 0
  112. cwood_shader -spec_couleur { 1 1 1 }
  113. cwood_shader -spec_etal 200
  114. cwood_shader -ambiant { 0.5 0.5 0.5 }
  115. cwood_shader -texture cwood_text
  116.  
  117. cwood_text -texture3d         cwood_t3d
  118. cwood_text -destination     color
  119. cwood_text -algo_applic        replace
  120. cwood_text -param_applic    0.5
  121.  
  122. cwood_t3d -type     radial1
  123. cwood_t3d -scale     { 15 15 15 }
  124. cwood_t3d -taille    10
  125. cwood_t3d -trans     { 0.0 0.0 0.0 }
  126. cwood_t3d -rotat     { 0.0 0.0 0.0 }
  127. cwood_t3d -perturbation 0.7
  128. cwood_t3d -octaves    3
  129. cwood_t3d -couleur1    { .6 .3 0 }
  130. cwood_t3d -couleur2    { .9 .5 0 }
  131. cwood_t3d -colmap { 0.00 0.2 0.3 1.0 1.0 }
  132. cwood_t3d -colmap { 0.40 0.3 0.7 0.8 1.0 }
  133. cwood_t3d -colmap { 0.55 0.1 0.1 0.6 1.0 }
  134. cwood_t3d -colmap { 1.00 0.2 0.3 1.0 1.0 }
  135.  
  136. ###########################################
  137. newshader redcopper_shader "Red Copper"
  138. redcopper_shader -ambiant { .5 .5 .5 }
  139. redcopper_shader -couleur { .4 .1 0 }
  140. redcopper_shader -diffus .5
  141. redcopper_shader -spec_coef .6
  142. redcopper_shader -spec_couleur { 1 .3 0 }
  143. redcopper_shader -spec_etal 10
  144. redcopper_shader -spec_filtre .8
  145. redcopper_shader -spec_eccen  .4
  146. #redcopper_shader -spec_algo    1
  147.  
  148. ###########################################
  149. newshader copper_shader "Copper"
  150. copper_shader -ambiant { .6 .6 .6 }
  151. copper_shader -couleur { .4 .2 .1 }
  152. copper_shader -diffus 0
  153. copper_shader -spec_coef 2
  154. copper_shader -spec_couleur { .4 .2 .1 }
  155. copper_shader -spec_etal 10
  156. copper_shader -spec_eccen .5
  157.  
  158. ###########################################
  159. newshader yelcopper_shader "Yellow copper"
  160. yelcopper_shader -ambiant { .4 .4 .4 }
  161. yelcopper_shader -couleur { 1 .9 .5 }
  162. yelcopper_shader -diffus .3
  163. yelcopper_shader -spec_coef .6
  164. yelcopper_shader -spec_couleur { 1 .9 .5 }
  165. yelcopper_shader -spec_etal 10
  166. yelcopper_shader -spec_eccen .95
  167. yelcopper_shader -spec_filtre 1
  168.  
  169. ###########################################
  170. newshader alu_shader "Aluminium"
  171. alu_shader -ambiant { .3 .3 .3 }
  172. alu_shader -couleur { .4 .4 .4 }
  173. alu_shader -diffus .4
  174. alu_shader -spec_coef .8
  175. alu_shader -spec_couleur { .5 .9 1 }
  176. alu_shader -spec_etal 20
  177. alu_shader -spec_algo    0
  178. alu_shader -spec_eccen    0
  179. alu_shader -spec_filtre 1
  180. alu_shader -shading    0
  181.  
  182. ###########################################
  183. newshader mzfumee "Smoke"
  184. mzfumee -couleur { .2 .3 .4 }
  185. mzfumee -ambiant { .2 .3 .4 }
  186. mzfumee -opacity { 1.0 1.0 1.0 }
  187. mzfumee -diffus 0.8
  188. mzfumee -amb_coef 0.6
  189. mzfumee -spec_coef 0
  190. mzfumee -cast_shadow 1
  191. mzfumee -recv_shadow 1
  192. mzfumee -texture mzfumee_text
  193.  
  194. mzfumee_text -texture3d mzfumee_data
  195. mzfumee_text -destination transp
  196. mzfumee_text -algo_applic replace
  197. mzfumee_text -param_applic 0.5
  198.  
  199. mzfumee_data -type wood
  200. mzfumee_data -couleur1      { 0.0 0.0 0.0 }
  201. mzfumee_data -couleur2      { 1.0 1.0 1.0 }
  202. mzfumee_data -scale     { 3.0 3.0 1.0 }
  203. mzfumee_data -trans     { 0.0 0.0 0.0 }
  204. mzfumee_data -rotat     { 0.0 0.0 0.0 }
  205. mzfumee_data -taille        10
  206. mzfumee_data -perturbation    0.79
  207. mzfumee_data -octaves        5
  208.  
  209. ###########################################
  210. newshader mbozoC "Bozo"
  211. mbozoC -couleur { 1.0 1.0 0.0 }
  212. mbozoC -ambiant { 0.3 0.3 0.3 }
  213. mbozoC -opacity { 1.0 1.0 1.0 }
  214. mbozoC -diffus 1
  215. mbozoC -spec_coef 0
  216. mbozoC -spec_etal 120
  217. mbozoC -cast_shadow 1
  218. mbozoC -recv_shadow 1
  219.  
  220. mbozoC -texture mbozoC_text
  221.  
  222. mbozoC_text -texture3d mbozoC_data
  223. mbozoC_text -destination color
  224. mbozoC_text -algo_applic replace
  225. mbozoC_text -param_applic 0.5
  226.  
  227. mbozoC_data -type marble
  228. mbozoC_data -scale     { 4.0 4.0 4.0 }
  229. mbozoC_data -trans     { 0.0 0.0 0.0 }
  230. mbozoC_data -rotat     { 0.0 0.0 0.0 }
  231. mbozoC_data -taille        1
  232. mbozoC_data -perturbation    1
  233. mbozoC_data -octaves        1
  234. mbozoC_data -colmap { 0.10 1.0 0.0 0.0 1.0 }
  235. mbozoC_data -colmap { 0.40 0.9 0.9 0.1 1.0 }
  236. mbozoC_data -colmap { 0.60 0.2 0.2 1.0 1.0 }
  237. mbozoC_data -colmap { 0.80 1.0 1.0 1.0 1.0 }
  238.  
  239.  
  240. ###########################################
  241. newshader mbozo "Planet Earth"
  242. mbozo -couleur { 1.0 1.0 0.0 }
  243. mbozo -ambiant { 0.4 0.4 0.4 }
  244. mbozo -opacity { 1.0 1.0 1.0 }
  245. mbozo -diffus 1
  246. mbozo -spec_coef 0
  247. mbozo -cast_shadow 1
  248. mbozo -recv_shadow 1
  249.  
  250. mbozo -texture mbozo_text
  251. mbozo -texture mbozo2_text
  252.  
  253. mbozo_text -texture3d mbozo_data
  254. mbozo_text -destination color
  255. mbozo_text -algo_applic replace
  256. mbozo_text -param_applic 0.5
  257.  
  258. mbozo_data -type wood
  259. mbozo_data -scale     { 2.0 2.0 2.0 }
  260. mbozo_data -trans     { 0.0 0.0 0.0 }
  261. mbozo_data -rotat     { 0.0 0.0 0.0 }
  262. mbozo_data -taille        2
  263. mbozo_data -perturbation    1
  264. mbozo_data -octaves        4
  265. mbozo_data -colmap { 0.70 0.2 0.2 1.0 1.0 }
  266. mbozo_data -colmap { 0.71 0.7 0.4 0.1 1.0 }
  267. mbozo_data -colmap { 1.0 0.1 0.5 0.0 1.0 }
  268.  
  269. mbozo2_text -texture3d mbozo2_data
  270. mbozo2_text -destination color
  271. mbozo2_text -algo_applic clearer
  272. mbozo2_text -param_applic 1
  273.  
  274. mbozo2_data -type    marble
  275. mbozo2_data -scale     { 2.0 2.0 2.0 }
  276. mbozo2_data -trans     { 0.0 0.0 0.0 }
  277. mbozo2_data -rotat     { 0.0 0.0 0.0 }
  278. mbozo2_data -taille        7
  279. mbozo2_data -perturbation    0.52
  280. mbozo2_data -octaves        7
  281. mbozo2_data -colmap { 0.0 0.0 0.0 0.0 1.0 }
  282. mbozo2_data -colmap { 1.0 1.0 1.0 1.0 1.0 }
  283.  
  284. ###########################################
  285. newshader mzcmap "Another blue marble"
  286. mzcmap -couleur { 1.0 1.0 0.0 }
  287. mzcmap -ambiant { 0.0 0.0 0.0 }
  288. mzcmap -opacity { 1.0 1.0 1.0 }
  289. mzcmap -diffus 1
  290. mzcmap -spec_coef .5
  291. mzcmap -spec_etal 120
  292. mzcmap -cast_shadow 1
  293. mzcmap -recv_shadow 1
  294.  
  295. mzcmap -texture mzcmap_text
  296.  
  297. mzcmap_text -texture3d mzcmap_data
  298. mzcmap_text -destination color
  299. mzcmap_text -algo_applic replace
  300. mzcmap_text -param_applic 0.5
  301.  
  302. mzcmap_data -type        marble
  303. mzcmap_data -couleur1      { 0.2 0.3 0.4 }
  304. mzcmap_data -couleur2      { 0.4 0.7 1.0 }
  305. mzcmap_data -scale     { 1.0 1.0 1.0 }
  306. mzcmap_data -trans     { 0.0 0.0 0.0 }
  307. mzcmap_data -rotat     { 0.0 0.0 0.0 }
  308. mzcmap_data -taille        20
  309. mzcmap_data -perturbation    .3
  310. mzcmap_data -octaves        7
  311. mzcmap_data -colmap { 0.00 0.0 0.3 1.0 1.0 }
  312. mzcmap_data -colmap { 0.10 0.2 0.7 0.8 1.0 }
  313. #mzcmap_data -colmap { 0.90 0.1 0.2 0.4 1.0 }
  314. mzcmap_data -colmap { 0.95 0.1 0.5 0.6 1.0 }
  315. mzcmap_data -colmap { 1.00 0.1 0.55 0.7 1.0 }
  316.  
  317.  
  318. ###########################################
  319. newshader mzlite "Modern plastic"
  320. mzlite -couleur { 0.8 0.9 0.6 }
  321. mzlite -ambiant { 0.0 0.0 0.0 }
  322. mzlite -opacity { 1.0 1.0 1.0 }
  323. mzlite -diffus .6
  324. mzlite -spec_coef 1
  325. mzlite -spec_etal 120
  326. mzlite -cast_shadow 1
  327. mzlite -recv_shadow 1
  328.  
  329. mzlite -texture mzlite_text
  330.  
  331. mzlite_text -texture3d mzlite_data
  332. mzlite_text -destination bump
  333. mzlite_text -algo_applic mix
  334. mzlite_text -param_applic 0.2
  335.  
  336. mzlite_data -type marble
  337. #mzlite_data -couleur1      { 0.2 0.3 0.4 }
  338. #mzlite_data -couleur2      { 0.4 0.7 1.0 }
  339. mzlite_data -couleur1      { 0.0 0.0 0.0 }
  340. mzlite_data -couleur2      { 1.0 1.0 1.0 }
  341. mzlite_data -scale     { 7.0 7.0 7.0 }
  342. mzlite_data -trans     { 0.0 0.0 0.0 }
  343. mzlite_data -rotat     { 0.0 0.0 0.0 }
  344. mzlite_data -taille        7
  345. mzlite_data -perturbation    0.9
  346. mzlite_data -octaves        1
  347.  
  348. ###########################################
  349. newshader damier_shader "Checker"
  350. damier_shader -ambiant { .5 .5 .5 }
  351. damier_shader -diffus 0.6
  352. damier_shader -spec_coef 0
  353. damier_shader -spec_couleur { 1 1 1 }
  354. damier_shader -spec_etal 200
  355. damier_shader -texture damier_text
  356.  
  357. damier_text -texture3d         damier_t3d
  358. damier_text -destination     color
  359. damier_text -algo_applic    replace
  360. damier_text -param_applic    0.5
  361.  
  362. damier_t3d -type         damier
  363. damier_t3d -perturbation     0.02
  364. damier_t3d -scale         { 5 5 5 }
  365. damier_t3d -taille        10
  366. damier_t3d -couleur1         { .6 .3 .2 }
  367. damier_t3d -couleur2        { 1 .5 0 }
  368.  
  369. ###########################################
  370. newshader damiert_shader "Venitian window"
  371. damiert_shader -couleur { 0.8 0.9 0.6 }
  372. damiert_shader -ambiant { .5 .5 .5 }
  373. damiert_shader -diffus 0.6
  374. damiert_shader -spec_coef 0
  375. damiert_shader -spec_couleur { 1 1 1 }
  376. damiert_shader -spec_etal 200
  377. damiert_shader -texture damiert_text
  378.  
  379. damiert_text -texture3d     damiert_t3d
  380. damiert_text -destination     transp
  381. damiert_text -algo_applic    replace
  382. damiert_text -param_applic    0.5
  383.  
  384. damiert_t3d -type         damier
  385. damiert_t3d -perturbation     0
  386. damiert_t3d -scale         { 1 20 1 }
  387. damiert_t3d -trans         { .5 0 0 }
  388. damiert_t3d -taille        10
  389. damiert_t3d -couleur1         { 0 0 0 }
  390. damiert_t3d -couleur2        { 1 1 1 }
  391.  
  392. ###########################################
  393. newshader degrade_shader "New age"
  394. degrade_shader -ambiant { .7 .7 .7 }
  395. degrade_shader -diffus 0.9
  396. degrade_shader -spec_coef 0
  397. degrade_shader -spec_couleur { 1 1 1 }
  398. degrade_shader -spec_etal 200
  399. degrade_shader -texture degrade_text
  400.  
  401. degrade_text -texture3d     degrade_t3d
  402. degrade_text -destination     color
  403. degrade_text -algo_applic    replace
  404. degrade_text -param_applic    0.5
  405.  
  406. degrade_t3d -type         degrad3d
  407. degrade_t3d -perturbation     0.7
  408. degrade_t3d -scale         { 4 3 4 }
  409. degrade_t3d -taille        10
  410. degrade_t3d -couleur1         { 0 0 0 }
  411. degrade_t3d -couleur2        { 1 1 1 }
  412. #degrade_t3d -colmap { 0.00 0.2 0.3 1.0 1.0 }
  413. #degrade_t3d -colmap { 0.40 0.3 0.7 0.8 1.0 }
  414. #degrade_t3d -colmap { 0.55 0.1 0.1 0.6 1.0 }
  415. #degrade_t3d -colmap { 1.00 0.2 0.3 2.0 1.0 }
  416.  
  417. ###########################################
  418. newshader degrades_shader "Fantaisie"
  419. degrades_shader -ambiant { .5 .5 .5 }
  420. degrades_shader -couleur { .9 .8 .7 }
  421. degrades_shader -diffus 0.6
  422. degrades_shader -spec_coef 0
  423. degrades_shader -spec_couleur { 1 1 1 }
  424. degrades_shader -spec_etal 200
  425. degrades_shader -texture degrades_text
  426.  
  427. degrades_text -texture3d     degrades_t3d
  428. degrades_text -destination     ambiant
  429. degrades_text -algo_applic    mix
  430. degrades_text -param_applic    0.5
  431.  
  432. degrades_t3d -type         degrad3ds
  433. degrades_t3d -perturbation     0.9
  434. degrades_t3d -scale         { 15 15 15 }
  435. degrades_t3d -taille        10
  436. degrades_t3d -couleur1         { 0 0 0 }
  437. degrades_t3d -couleur2        { 1 1 1 }
  438. #degrades_t3d -colmap { 0.00 0.2 0.3 1.0 1.0 }
  439. #degrades_t3d -colmap { 0.40 0.3 0.7 0.8 1.0 }
  440. #degrades_t3d -colmap { 0.55 0.1 0.1 0.6 1.0 }
  441. #degrades_t3d -colmap { 1.00 0.2 0.3 2.0 1.0 }
  442.  
  443. ###########################################
  444. newshader marble2v_shader "Marble with two layers"
  445. marble2v_shader -couleur { 0.2 0.4 0.9 }
  446. marble2v_shader -diffus 0.6
  447. marble2v_shader -spec_coef .8
  448. marble2v_shader -spec_couleur { 1 1 1 }
  449. marble2v_shader -spec_etal 200
  450. marble2v_shader -texture marble2v_text2
  451. marble2v_shader -texture marble2v_text
  452.  
  453. marble2v_text -texture3d     marble2v_t3d
  454. marble2v_text -destination     color
  455. marble2v_text -algo_applic    add
  456. marble2v_text -param_applic    0.5
  457.  
  458. marble2v_t3d -type         marble
  459. marble2v_t3d -perturbation     0.3
  460. marble2v_t3d -scale         { 2 2 2 }
  461. marble2v_t3d -taille        10
  462. marble2v_t3d -colmap { 0.00 0.0 0.7 1.0 0.0 }
  463. marble2v_t3d -colmap { 0.40 0.1 1.0 0.8 1.0 }
  464. marble2v_t3d -colmap { 0.55 0.3 1.0 1.0 1.0 }
  465. marble2v_t3d -colmap { 1.00 0.5 0.5 1.0 0.0 }
  466.  
  467. marble2v_text2 -texture3d     marble2v_t3d2
  468. marble2v_text2 -destination     color
  469. marble2v_text2 -algo_applic    add
  470. marble2v_text2 -param_applic    0.5
  471.  
  472. marble2v_t3d2 -type         marble
  473. marble2v_t3d2 -perturbation     0.3
  474. marble2v_t3d2 -scale         { 4 4 4 }
  475. marble2v_t3d2 -taille        10
  476. marble2v_t3d2 -colmap { 0.00 0.2 0.3 1.0 1.0 }
  477. marble2v_t3d2 -colmap { 0.40 0.3 0.7 0.8 0.0 }
  478. marble2v_t3d2 -colmap { 0.55 0.1 0.1 0.6 0.0 }
  479. marble2v_t3d2 -colmap { 1.00 0.2 0.3 1.0 1.0 }
  480.  
  481. ###########################################
  482. newshader bump2_shader "Old copper"
  483. bump2_shader -ambiant { .3 .3 .3 }
  484. bump2_shader -couleur { .5 .2 0 }
  485. bump2_shader -diffus .6
  486. bump2_shader -spec_coef 1
  487. bump2_shader -spec_couleur { 1 1 1 }
  488. bump2_shader -spec_etal 40
  489. bump2_shader -texture bump2_text
  490.  
  491. bump2_text -texture3d     bump2_t3d
  492. bump2_text -destination     bump
  493. bump2_text -algo_applic        mix
  494. bump2_text -param_applic    .8
  495.  
  496. bump2_t3d -type         noise
  497. bump2_t3d -perturbation     .6
  498. bump2_t3d -scale         { 20 20 20 }
  499. bump2_t3d -taille        37
  500.  
  501. ###########################################
  502. newshader bump3_shader "Concrete"
  503. bump3_shader -ambiant { .2 .2 .2 }
  504. bump3_shader -couleur { .7 .7 .7 }
  505. bump3_shader -diffus .5
  506. bump3_shader -spec_coef .2
  507. bump3_shader -spec_couleur { 1 1 1 }
  508. bump3_shader -spec_etal 50
  509. bump3_shader -texture bump3_text
  510.  
  511. bump3_text -texture3d     bump3_t3d
  512. bump3_text -destination     bump
  513. bump3_text -algo_applic        mix
  514. bump3_text -param_applic    1
  515.  
  516. bump3_t3d -type         noise
  517. bump3_t3d -perturbation     .97
  518. bump3_t3d -octaves         4
  519. bump3_t3d -scale         { 40 40 40 }
  520. bump3_t3d -taille     55
  521.  
  522. ###########################################
  523. newshader woodn_shader "Stone made with wood shader"
  524. woodn_shader -diffus 0.6
  525. woodn_shader -couleur { .4 .9 .95 }
  526. woodn_shader -spec_coef 1
  527. woodn_shader -spec_couleur { 1 1 1 }
  528. woodn_shader -spec_etal 200
  529. woodn_shader -ambiant { 0.4 0.4 0.4 }
  530. woodn_shader -texture woodn_text
  531.  
  532. woodn_text -texture3d         woodn_t3d
  533. woodn_text -destination     color
  534. woodn_text -algo_applic        replace
  535. woodn_text -param_applic    .5
  536.  
  537. woodn_t3d -type         wood
  538. woodn_t3d -scale     { 5 5 5 }
  539. woodn_t3d -rotat     { 0.0 0.0 0.0 }
  540. woodn_t3d -perturbation 0.3
  541. woodn_t3d -octaves    8
  542. woodn_t3d -taille    30
  543.  
  544. ###########################################
  545. newshader woodn2_shader "Two wooden layers"
  546. woodn2_shader -diffus 0.6
  547. woodn2_shader -couleur { .4 .9 .95 }
  548. woodn2_shader -spec_coef 1
  549. woodn2_shader -spec_couleur { 1 1 1 }
  550. woodn2_shader -spec_etal 100
  551. woodn2_shader -ambiant { 0.4 0.4 0.4 }
  552. woodn2_shader -texture woodn2_text
  553. woodn2_shader -texture wood2_text
  554.  
  555. woodn2_text -texture3d         woodn2_t3d
  556. woodn2_text -destination     bump
  557. woodn2_text -algo_applic    mix
  558. woodn2_text -param_applic    .5
  559.  
  560. woodn2_t3d -type         wood
  561. woodn2_t3d -scale     { 10 10 1 }
  562. woodn2_t3d -rotat     { 0.0 0.0 0.0 }
  563. woodn2_t3d -perturbation 0.1
  564. woodn2_t3d -octaves    3
  565. woodn2_t3d -taille    6
  566.  
  567. wood2_text -texture3d         wood2_t3d
  568. wood2_text -destination     color
  569. wood2_text -algo_applic            replace
  570. wood2_text -param_applic    0.5
  571.  
  572. wood2_t3d -type         wood
  573. wood2_t3d -scale     { 10 10 1 }
  574. wood2_t3d -rotat     { 0.0 0.0 0.0 }
  575. wood2_t3d -perturbation .1
  576. wood2_t3d -octaves    3
  577. wood2_t3d -taille    6
  578. wood2_t3d -couleur1    { .3 .15 .05 }
  579. wood2_t3d -couleur2    { .7 .4 .1 }
  580.  
  581. ###########################################
  582. newshader marblen_shader "Stripes"
  583. marblen_shader -diffus 0.6
  584. marblen_shader -couleur { .2 .5 .95 }
  585. marblen_shader -spec_coef 1
  586. marblen_shader -spec_couleur { 1 1 1 }
  587. marblen_shader -spec_etal 200
  588. marblen_shader -ambiant { 0.4 0.4 0.4 }
  589. marblen_shader -texture marblen_text
  590.  
  591. marblen_text -texture3d     marblen_t3d
  592. marblen_text -destination     color
  593. marblen_text -algo_applic    replace
  594. marblen_text -param_applic    .5
  595.  
  596. marblen_t3d -type         marble
  597. marblen_t3d -scale     { 3 3 1 }
  598. marblen_t3d -rotat     { 0.0 0.0 0.0 }
  599. marblen_t3d -perturbation 0.2
  600. marblen_t3d -octaves    3
  601. marblen_t3d -taille    100
  602. marblen_t3d -couleur1    { .8 .2 .4 }
  603. marblen_t3d -couleur2    { .3 .2 .25 }
  604.  
  605. ###########################################
  606. newshader damiern_shader "Transparent checker"
  607. damiern_shader -ambiant { .5 .5 .5 }
  608. damiern_shader -couleur { .2 .95 .35 }
  609. damiern_shader -diffus 0.6
  610. damiern_shader -spec_coef 0
  611. damiern_shader -spec_couleur { 1 1 1 }
  612. damiern_shader -spec_etal 200
  613. damiern_shader -texture damiern_text
  614.  
  615. damiern_text -texture3d     damiern_t3d
  616. damiern_text -destination     transp
  617. damiern_text -algo_applic    replace
  618. damiern_text -param_applic    1
  619.  
  620. damiern_t3d -type         damier
  621. damiern_t3d -perturbation     0
  622. damiern_t3d -scale         { 5 5 5 }
  623. damiern_t3d -taille         10
  624.  
  625. damiern_t3d -couleur1    { 0 0 0 }
  626. damiern_t3d -couleur2    { 1 1 1 }
  627.  
  628. ###########################################
  629. newshader radialn1_shader "Radial example"
  630. radialn1_shader -ambiant { .5 .5 .5 }
  631. radialn1_shader -couleur { .4 .45 .95 }
  632. radialn1_shader -diffus 0.6
  633. radialn1_shader -spec_coef 1
  634. radialn1_shader -spec_couleur { 1 1 1 }
  635. radialn1_shader -spec_etal 100
  636. radialn1_shader -texture radialn1_text
  637.  
  638. radialn1_text -texture3d     radialn1_t3d
  639. radialn1_text -destination     color
  640. radialn1_text -algo_applic    replace
  641. radialn1_text -param_applic    0.3
  642.  
  643. radialn1_t3d -type         radial1
  644. radialn1_t3d -perturbation     0.1
  645. radialn1_t3d -scale         { 10 10 10 }
  646. #radialn1_t3d -trans         { -0.5 -0.5 -0.5 }
  647. radialn1_t3d -rotat         { 0.0 0.0 0.0 }
  648. radialn1_t3d -taille        10
  649.  
  650. ###########################################
  651. newshader radialn2_shader "Radial example 2"
  652. radialn2_shader -ambiant { .5 .5 .5 }
  653. radialn2_shader -couleur { .4 .45 .95 }
  654. radialn2_shader -diffus 0.6
  655. radialn2_shader -spec_coef 1
  656. radialn2_shader -spec_couleur { 1 1 1 }
  657. radialn2_shader -spec_etal 100
  658. radialn2_shader -texture radialn2_text
  659.  
  660. radialn2_text -texture3d     radialn2_t3d
  661. radialn2_text -destination     color
  662. radialn2_text -algo_applic    replace
  663. radialn2_text -param_applic    0.3
  664.  
  665. radialn2_t3d -type         radial2
  666. radialn2_t3d -perturbation     0.3
  667. radialn2_t3d -octaves         5
  668. radialn2_t3d -scale         { 20 20 20 }
  669. radialn2_t3d -rotat         { 0.0 0.0 0.0 }
  670. radialn2_t3d -taille        5
  671.  
  672. ###########################################
  673. newshader grid_shader "Grid"
  674. grid_shader -ambiant { .5 .5 .5 }
  675. grid_shader -couleur { .4 .45 .95 }
  676. grid_shader -diffus 0.6
  677. grid_shader -spec_coef 1
  678. grid_shader -spec_couleur { 1 1 1 }
  679. grid_shader -spec_etal 100
  680. grid_shader -texture grid_text
  681.  
  682. grid_text -texture3d     grid_t3d
  683. grid_text -destination     color
  684. grid_text -algo_applic    replace
  685. grid_text -param_applic    0
  686.  
  687. grid_t3d -type         grid
  688. grid_t3d -perturbation     0
  689. grid_t3d -octaves         5
  690. grid_t3d -rotat         { 0.0 0.0 0.0 }
  691. grid_t3d -taille        20
  692. grid_t3d -couleur1        { 0 0 0 }
  693. grid_t3d -couleur2        { 1 1 1 }
  694.  
  695. ###########################################
  696. newshader bricks_shader "Bricks"
  697. bricks_shader -ambiant { .2 .2 .2 }
  698. bricks_shader -couleur { .8 .45 .2 }
  699. bricks_shader -diffus 0.8
  700. bricks_shader -spec_coef 0.1
  701. bricks_shader -spec_couleur { 1 1 1 }
  702. bricks_shader -spec_etal 100
  703. bricks_shader -texture bricks_text
  704.  
  705. bricks_text -texture3d     bricks_t3d
  706. bricks_text -destination     color
  707. bricks_text -algo_applic    replace
  708. bricks_text -param_applic    0
  709.  
  710. bricks_t3d -type         brick
  711. bricks_t3d -perturbation     0
  712. bricks_t3d -octaves         5
  713. #bricks_t3d -scale         { 5 5 5 }
  714. bricks_t3d -scale         { 5 5 5 }
  715. bricks_t3d -rotat         { 0.0 0.0 0.0 }
  716. bricks_t3d -taille        20
  717. bricks_t3d -couleur1        { 0.7 0.56 0.3 }
  718. bricks_t3d -couleur2        { 0.45 0.34 0.25 }
  719.  
  720. ###########################################
  721. newshader radialn22_shader "reflection mapping"
  722. radialn22_shader -ambiant { .2 .2 .2 }
  723. radialn22_shader -couleur { .55 .555 .5555 }
  724. radialn22_shader -diffus 1
  725. radialn22_shader -spec_coef 0
  726. radialn22_shader -spec_couleur { 1 1 1 }
  727. radialn22_shader -spec_etal 100
  728. radialn22_shader -texture lazizanie_text
  729.  
  730. lazizanie_text -mapping2d       lazizanie_mapping
  731. lazizanie_text -destination     color
  732. lazizanie_text -algo_applic     replace
  733. lazizanie_text -param_applic    0.3
  734.  
  735. #  uv:       uv simple, mal interpole si la facette n'est pas rectangulaire
  736. #  uv_proj:  uv projectif, comme si la mappe etait projetee sur la facette
  737. #  uv_quad:  uv en equation quadratique, c'est la meilleure methode
  738. #
  739. #  sphere:
  740. #  cylindre:
  741. #  cercle:
  742. #  plan:
  743. #  cube:                6 faces selon la meilleure orientation
  744. #  ball:                cf reflection2
  745. #  reflection:          mapping de reflection 'spherique'
  746. #  reflection2:         idem mais en mapping 'ball' : la mappe doit montrer un
  747. #                       image ronde: seule la partie ronde de la mappe
  748.  
  749. lazizanie_mapping -type         cube
  750. lazizanie_mapping -centre       { 0 0 0 }
  751. lazizanie_mapping -flags        19
  752. #lazizanie_mapping -nom_image    "Amapi Package:AMAPI DEVELOP: MAPPING TESTS:MAPPING.TGA"
  753. #lazizanie_mapping -nom_image    "D:\\desert.TGA"
  754.  
  755. lazizanie_mapping -texture2d     zizanie_texture2d
  756.  
  757. zizanie_texture2d -type         wood
  758. zizanie_texture2d -taille        10
  759. zizanie_texture2d -perturbation        0.6
  760. zizanie_texture2d -octaves        4
  761. zizanie_texture2d -bias            0.44
  762. zizanie_texture2d -gain            0.46
  763. zizanie_texture2d -colmap { 0.00 0.2 0.3 1.0 1.0 }
  764. zizanie_texture2d -colmap { 0.40 0.3 0.7 0.8 0.0 }
  765. zizanie_texture2d -colmap { 0.55 0.1 0.1 0.6 0.0 }
  766. zizanie_texture2d -colmap { 1.00 0.2 0.3 1.0 1.0 }
  767.  
  768.